package com.xiangban.volunteer_platform.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiangban.volunteer_platform.entity.User;
import com.xiangban.volunteer_platform.entity.dto.LeaderIdDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/1/27 12:38
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    List<User> getUserByType();

    //修改组长辖内人员id根据传来的人员归属组长id
    int updatePersonListsByLeaderIdList(LeaderIdDto leaderIdDto);
    //重置小组长归属信息
    int resetting(String leaderId );
}
